import * as constents from './createTypes'
import { fromJS } from 'immutable'

const defaultValue = fromJS({
   title: '',
   content: ''
})

export default (state = defaultValue, action) => {
    switch (action.type) {
        case constents.GET_CONTENT:
        return state.merge({
            title: action.title,
			content: action.content
        })
        default:
            return state
    }

}